let connect = require('./sql');
const query = (sql) => {
    return new Promise((resolve, reject) => {
        connect.query(sql, (err, data) => {
            if (!err) {
                resolve(data)
            }
        })
    })
}

module.exports = query;